import request from '@/utils/request'

export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data: data
  })
}
/**
 * 获取用户的基本资料
 ***/
export function getUserInfoApi() {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

// 获取员工信息
export function PersonalDetailsAPI(id) {
  return request({
    url: `/sys/user/${id}`
  })
}

// 修改员工信息
export function ModifyEmployeeInformationAPI(data) {
  return request({
    url: `/sys/user/${data.id}`,
    method: 'PUT',
    data
  })
}
